import React from 'react';
import styles from './Button.module.css'; // 引入样式文件
/* const Button = ({ onClick, children, type = 'button', className = '' }) => {
    return (
        <button onClick={onClick} type={type} className={`btn ${className}`}>
            {children}
        </button>
    );
}; */
const Button = ({btnTxt='默认按钮',type='button',btnClick}) => {
    // 添加示例按钮部分
    const ThreeDButton = () => (
        <div className={styles.buttonContainer}>
            <button type={type} className={styles.threeDButton} onClick={btnClick}>
                {btnTxt}
            </button>
        </div>
    );

    return (
            <ThreeDButton />
    );
};

export default Button;